import request from '@/utils/request'

// 查询零工操作人列表
export function listOmember(query) {
  return request({
    url: '/sl/omember/list',
    method: 'get',
    params: query
  })
}

// 查询零工操作人详细
export function getOmember(omemberId) {
  return request({
    url: '/sl/omember/' + omemberId,
    method: 'get'
  })
}

// 新增零工操作人
export function addOmember(data) {
  return request({
    url: '/sl/omember',
    method: 'post',
    data: data
  })
}

// 修改零工操作人
export function updateOmember(data) {
  return request({
    url: '/sl/omember',
    method: 'put',
    data: data
  })
}

// 删除零工操作人
export function delOmember(omemberId) {
  return request({
    url: '/sl/omember/' + omemberId,
    method: 'delete'
  })
}

// 查询所有未提交的报工项的参与人列表
export function allOddjobMember(query) {
  return request({
    url: '/sl/omember/notmember',
    method: 'get',
    params: query
  })
}
